xen/arm: Make get_page_from_gfn working with DOMID_XEN
authorJulien Grall <julien.grall@arm.com>
Fri, 21 Dec 2018 16:26:46 +0000 (16:26 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 21 Dec 2018 17:43:52 +0000 (09:43 -0800)
commit0178f4416c61c4e87bfad5c5b41b537d165321fe
tree8c576202ec816f7a6e3c06ec2063f2e98696b555
parente820583468513b799aafc1010977e71db27f8992
xen/arm: Make get_page_from_gfn working with DOMID_XEN

DOMID_XEN is used to share pages beloging to the hypervisor
(e.g trace buffers). Unlike other domains, DOMID_XEN is a non-auto
translated domain and therefore does not have a P2M.

This patch adds a special case for DOMID_XEN in get_page_from_gfn. We
may want to provide "non-auto translated helpers" in the future if we
see more case.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Andrii Anisov <andrii_anisov@epam.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/include/asm-arm/p2m.h